const LOG_MAP = [
  ['/character/list', '获取角色列表'],
  ['/log/list', '获取日志列表'],
  ['/user/info', '获取自己的登入信息'],
  ['/good/list', '获取商品列表']
]

export const getLogInfoByPath = path => {
  let title = ''
  LOG_MAP.forEach(item => {
    if (path.includes(item[0])) {
      title = item[1]
    }
  })
  return title || path
}
